<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui">
	
<h:head>
	<ui:insert name="head" />
	<link rel="stylesheet" type="text/css" href="#{request.contextPath }/css/style.css"/>
	<meta content="IE=EmulateIE7" http-equiv="X-UA-Compatible" />
	<title>#{msg['label.title.sistema']}</title>
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
		<script type="text/javascript">
		$(document).ready(function(){
		  var currentPosition = 0;
		  var slideWidth = 560;
		  var slides = $('.slide');
		  var numberOfSlides = slides.length;
		
		  // Remove scrollbar in JS
		  $('#slidesContainer').css('overflow', 'hidden');
		
		  // Wrap all .slides with #slideInner div
		  slides
		    .wrapAll('<div id="slideInner"></div>')
		    // Float left to display horizontally, readjust .slides width
			.css({
		      'float' : 'left',
		      'width' : slideWidth
		    });
		
		  // Set #slideInner width equal to total width of all slides
		  $('#slideInner').css('width', slideWidth * numberOfSlides);
		
		  // Insert controls in the DOM
		  $('#slideshow')
		    .prepend('<span class="control" id="leftControl">Clicking moves left</span>')
		    .append('<span class="control" id="rightControl">Clicking moves right</span>');
		
		  // Hide left arrow control on first load
		  manageControls(currentPosition);
		
		  // Create event listeners for .controls clicks
		  $('.control')
		    .bind('click', function(){
		    // Determine new position
			currentPosition = ($(this).attr('id')=='rightControl') ? currentPosition+1 : currentPosition-1;
		    
			// Hide / show controls
		    manageControls(currentPosition);
		    // Move slideInner using margin-left
		    $('#slideInner').animate({
		      'marginLeft' : slideWidth*(-currentPosition)
		    });
		  });
		
		  // manageControls: Hides and Shows controls depending on currentPosition
		  function manageControls(position){
		    // Hide left arrow if position is first slide
			if(position==0){ $('#leftControl').hide() } else{ $('#leftControl').show() }
			// Hide right arrow if position is last slide
		    if(position==numberOfSlides-1){ $('#rightControl').hide() } else{ $('#rightControl').show() }
		  }	
		});
		</script>	
</h:head>	
	
<body>

	<h:panelGroup layout="block" id="container">

		<h:panelGroup layout="block" id="cabecalho">
			<h:panelGroup layout="block" styleClass="bordaE">
				<p:spacer height="1" />
			</h:panelGroup>
			
			<h:panelGroup layout="block" styleClass="centro">
				<h:panelGroup layout="block" id="logo">
					<p:graphicImage url="/img/logo_versao2.png" />
				</h:panelGroup>
				<h:panelGroup layout="block" id="menu">
					<h:panelGroup layout="block" styleClass="camadaSup">
					</h:panelGroup>
					<h:panelGroup layout="block" styleClass="botao">
						<h:panelGroup layout="block" styleClass="texto">
						#{msg['label.home']}
						</h:panelGroup>
					</h:panelGroup>
					<h:panelGroup layout="block" styleClass="botao">
						<h:panelGroup layout="block" styleClass="texto">
							<a href="empresa.faces">#{msg['label.empresa']}</a>
						</h:panelGroup>
					</h:panelGroup>
					<h:panelGroup layout="block" styleClass="botao">
						<h:panelGroup layout="block" styleClass="texto">
						#{msg['label.servicos']}
						</h:panelGroup>
					</h:panelGroup>
					<h:panelGroup layout="block" styleClass="botao">
						<h:panelGroup layout="block" styleClass="texto">
						#{msg['label.clientes']}
						</h:panelGroup>
					</h:panelGroup>
					<h:panelGroup layout="block" styleClass="botao">
						<h:panelGroup layout="block" styleClass="texto">
						#{msg['label.contato.upper']}
						</h:panelGroup>
					</h:panelGroup>
					<h:panelGroup layout="block" styleClass="clearAll">
					</h:panelGroup>
					<h:panelGroup layout="block" styleClass="camadaInf">
					</h:panelGroup>
				</h:panelGroup>	
			</h:panelGroup>
			
			<h:panelGroup layout="block" styleClass="bordaD">
				<p:spacer height="1" />
			</h:panelGroup>				
		</h:panelGroup>
		
		<h:panelGroup layout="block" styleClass="clearAll">
		</h:panelGroup>
		
		<h:panelGroup layout="block" id="body">
			<h:panelGroup layout="block" styleClass="bordaE">
				<p:spacer height="1" />
			</h:panelGroup>
			<h:panelGroup layout="block" styleClass="centro">
				<ui:insert name="body" />
			</h:panelGroup>
			<h:panelGroup layout="block" styleClass="bordaD">
				<p:spacer height="1" />
			</h:panelGroup>
		</h:panelGroup>
		
		<h:panelGroup layout="block" styleClass="clearAll">
		</h:panelGroup>
		
		<h:panelGroup layout="block" id="rodape">
			<h:panelGroup layout="block" styleClass="bordaE">
				<p:spacer height="1" />
			</h:panelGroup>
			<h:panelGroup layout="block" styleClass="centro">
				<h:panelGroup layout="block" styleClass="boxInfo">
					<h:panelGroup layout="block" styleClass="icone">
						<p:graphicImage url="/img/location.png" />
					</h:panelGroup>
					<h:panelGroup layout="block" styleClass="texto">
						<p class="fonteNegrito">#{msg['label.endereco']}</p>
						<p class="fonte">#{msg['label.endereco.comercial']}</p>
						<p class="fonte">#{msg['label.bairro.cidade']}</p>
					</h:panelGroup>	
				</h:panelGroup>
				<h:panelGroup layout="block" styleClass="boxInfo">
					<h:panelGroup layout="block" styleClass="icone">
						<p:graphicImage url="/img/telefone.png" />
					</h:panelGroup>
					<h:panelGroup layout="block" styleClass="texto">
						<p class="fonteNegrito">#{msg['label.telefones']}</p>
						<p class="fonte">#{msg['label.telefone.comercial']}</p>
						<p class="fonte">#{msg['label.telefone.celular']}</p>
					</h:panelGroup>	
				</h:panelGroup>
				<h:panelGroup layout="block" styleClass="boxInfo">
					<h:panelGroup layout="block" styleClass="icone">
						<p:graphicImage url="/img/contato.png" />
					</h:panelGroup>
					<h:panelGroup layout="block" styleClass="texto">
						<p class="fonteNegrito">#{msg['label.contato']}</p>
						<p class="fonte">#{msg['label.email']}</p>
					</h:panelGroup>	
				</h:panelGroup>
				<h:panelGroup layout="block" styleClass="boxInfo">
					<h:panelGroup layout="block" styleClass="icone">
						<p:graphicImage url="/img/reg.png" />
					</h:panelGroup>
					<h:panelGroup layout="block" styleClass="texto">
						<p class="fonteNegrito">#{msg['label.marca.registrada']}</p>
						<p class="fonte">#{msg['label.title.sistema']}</p>
					</h:panelGroup>	
				</h:panelGroup>
			</h:panelGroup>
			<h:panelGroup layout="block" styleClass="bordaD">
				<p:spacer height="1" />
			</h:panelGroup>
		</h:panelGroup>
			
	</h:panelGroup>
	
</body>
	
</html>